import request from '@/utils/request'

export default {
  getPageList(page, limit) {
    return request.get(`/admin/product/baseTrademark/${page}/${limit}`)
  },
  save(tmForm) {
    if (tmForm.id) {
      return request.put(`/admin/product/baseTrademark/update`, tmForm)
    }
    return request.post(`/admin/product/baseTrademark/save`, tmForm)
  },
  delete(id) {
    return request.delete(`/admin/product/baseTrademark/remove/${id}`)
  },
  // 获取品牌下拉的列表数据
  getTrademarkList() {
    return request.get(`/admin/product/baseTrademark/getTrademarkList`)
  }
}